package com.contain2.set;

public class SetType {

	int i;

	public SetType(int n) {
		i = n;
	}

	// 加入Set的元素必须定义equals()方法以确保对象的唯一性
	public boolean equals(Object o) {
		return o instanceof SetType && (i == ((SetType) o).i);
	}

	public String toString() {
		return Integer.toString(i);
	}

}
